package com.charm.frameworkarou.share

import com.chad.library.adapter.base.BaseViewHolder
import com.charm.frameworkarou.R
import com.charm.frameworkarou.recycleadapter.QuickRecyAdapter

class ShareAdapter(list: List<ShareEntity>?) : QuickRecyAdapter<ShareEntity>(list) {
    override fun getLayoutResId(): Int {
        return R.layout.item_share
    }

    override fun convert(helper: BaseViewHolder?, item: ShareEntity?) {
        helper!!.setText(R.id.tv, item!!.name)
        helper!!.setImageResource(R.id.iv, item.icon)
    }

}